package com.tyqx.hashchainbiz.service.impl;

import com.tyqx.hashchainbean.module.JZTGS1;
import com.tyqx.hashchainbean.module.JZTGS1Str;
import com.tyqx.hashchainbean.vo.JZTGS1StrVO;
import com.tyqx.hashchainbean.vo.JZTGS1VO;
import com.tyqx.hashchainbiz.service.JZTGS1Service;
import com.tyqx.hashchaindao.mapper.JZTGS1Mapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("jztGS1Service")
public class JZTGS1ServiceImpl implements JZTGS1Service {

    @Resource
    private JZTGS1Mapper jztgs1Mapper;

    @Override
    public Integer addJZTGS1(JZTGS1Str jztgs1) {
        return jztgs1Mapper.addJZTGS1(jztgs1);
    }

    @Override
    public List<JZTGS1StrVO> getJZTGS1BySsccCode(String ssccCode) {
        return jztgs1Mapper.getJZTGS1BySsccCode(ssccCode);
    }

    @Override
    public List<JZTGS1StrVO> grantGetJZTGS1BySsccCode(String ssccCode, String userName) {
        return jztgs1Mapper.grantGetJZTGS1BySsccCode(ssccCode,userName);
    }

    @Override
    public Integer insertBatch(List<JZTGS1Str> jztgs1List) {
        return jztgs1Mapper.insertBatch(jztgs1List);
    }
}
